package rocky.freemanagementsystemserver.Entity

import java.util.*
import javax.persistence.*

@MappedSuperclass
open class BaseEntity {
    @Id
    open var id: String? = UUID.randomUUID().toString()

    open var createOn: Long = System.currentTimeMillis()

    open var updateOn: Long = System.currentTimeMillis();

    @ManyToOne
    open var createBy: User? = null

    @ManyToOne
    open var updateBy: User? = null
}